<?php

namespace app\repositories\contracts;

/***
 * Interface ArticleInterface
 * @NAMESPACE app\repositories\contracts
 * @Author Vee7
 * @Date 2021/12/14
 * @Time 13:11
 * @Description 后台文章接口
 */
interface ArticleInterface
{
    public function getArticleList($orderby='sort',$order='desc');

    public function getArticleData($id);

    public function addArticleList(array $addArray,$author,$type);

    public function getArticleListCount();

    public function getArticleListPage($page,$limit,$orderby='sort',$order='desc');

    public function searchArticleListPage($field,$where,$searchData,$page,$limit,$orderby='sort',$order='desc');

    public function delArticleList(array $id);

    public function editArticleList(array $data);

}